#include "Vector.h"

#include <cmath>

using namespace GerMathLib;

Vector::Vector( uint8_t dim)
{
	this->data.resize( dim, 0);
}

Vector::~Vector()
{

}

uint8_t Vector::dim(void)
{
	return (uint8_t) this->data.size();
}

uint32_t Vector::norm(void)
{
	double norm = 0;

	std::list<double>::iterator it;

	for( it = this->data.begin(); it < this->data.end(); ++it)
		norm += *it * *it;

	return sqrt(norm);
}

